home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK2.toast / Development Kits (Disc 2) / QuickTime / Sample Code / QT Codec Acceleration / Samples / FakeRaw / rawFakerCodec.r < prev   
Encoding:
Text File  |  1997-02-26  |  630 b   |  48 lines  |  [TEXT/MPS ]

  1. #define UseExtendedThingResource 1
  2.  
  3.  
  4.  
  5. #include "Types.r"
  6. #include "MPWTypes.r"
  7. #include "ImageCodec.r"
  8.  
  9.  
  10. #define    rawFakerCodecFormatType    'raw '
  11.  
  12. resource 'thng' (128,  "Example Decompressor",locked) {
  13.     decompressorComponentType,
  14.     rawFakerCodecFormatType,
  15.     'fake',
  16.     codecInfoDoes32,
  17.     0,
  18.     'cdec',
  19.     128,
  20.     'STR ',
  21.     130,
  22.     'STR ',
  23.     131,
  24.     0,
  25.     0,
  26.     0,
  27.     componentHasMultiplePlatforms | componentDoAutoVersion,
  28.     0,
  29.     {
  30.         codecInfoDoes32,
  31.         'cdek',
  32.         128,
  33.         2
  34.     }
  35. };
  36.  
  37.  
  38. resource 'STR ' (130) {
  39.     "My Fake Raw Decompressor"
  40. };
  41.  
  42. resource 'STR ' (131) {
  43.     "Example of some new codec features."
  44. };
  45.  
  46.  
  47. read 'cdek' (128, "Example Decompressor") DECOPPC;
  48.